
local template = require("resty.template")
local mysql = require("lib.mysql")
local db = mysql:new()

local res, err, errno, sqlstate = db:query('select * from  log_record order by id desc limit 0 ,100 ')
db:close()
ngx.log(ngx.ERR,"select *************************:log_record ")
if not res then
  res={}
end
local context = {
  logList=res,

}

template.render("logRecord.html", context)